/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testy.svn;

/**
 *
 * @author pb22923
 */
public class Prostokat extends Figura{

    public Prostokat(int a, int b){
        this.a=a;
        this.b=b;
    }
    
    @Override
    public double pole() {
        return this.a*this.b;
    }

    @Override
    public double obwod() {
        return this.a*2+this.b*2;
    }
    
    
}
